import relationalStore from '@ohos.data.relationalStore';

export class dict {
  readonly FIVE_MINUTES: number = 5;
  readonly NAME_KEY: string = 'ohos.extra.param.key.form_name';
  readonly IDENTITY_KEY: string = 'ohos.extra.param.key.form_identity';
  readonly DIMENSION_KEY: string = 'ohos.extra.param.key.form_dimension';


  readonly STORE_CONFIG: relationalStore.StoreConfig = {
    name: 'FormDatabase.db', securityLevel: relationalStore.SecurityLevel.S1, encrypt: false
  };
  readonly FORM_ID: string = 'formId';
  readonly TABLE_NAME: string = 'FormData';
  readonly INTERVAL_DELAY_TIME: number = 300000;
  readonly CREATE_TABLE_FORM: string = 'CREATE TABLE IF NOT EXISTS FormData ' +
  '(id INTEGER PRIMARY KEY AUTOINCREMENT, formId TEXT NOT NULL, formName TEXT NOT NULL, dimension INTEGER)';


  readonly CARD_TABLE_NAME: string = 'CardComicData';
  readonly CARD_TABLE_FORM: string = 'CREATE TABLE IF NOT EXISTS CardComicData(id INTEGER PRIMARY KEY AUTOINCREMENT,' +
  'comicId TEXT NOT NULL, comicName TEXT NOT NULL,cover TEXT NOT NULL,desc TEXT NOT NULL)';
}
export default new dict();

export const SHARE_ITEM_ANIMATION_DELAY = 100;
export const SHARE_TRANSITION_ID: string = 'shareId';
export const TRANSITION_ANIMATION_DURATION: number = 300;
export const  HOST: string = "http://www.bilibili.com/";
export const  AOO_USER_AGENT: string = "Bilibili Freedoooooom/MarkII";
export const  API_USER_AGENT: string = "Mozilla/5.0 BiliDroid/1.12.0 (bbcallen@gmail.com)";
export const  PLAY_USER_AGENT: string = "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36";
export const  MOBILE_USER_AGENT: string = "Mozilla/5.0 (Linux; Android 8.0; Pixel 2 Build/OPD3.170816.012) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Mobile Safari/537.36";